<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib prefix="c" uri="jstl"  %>
<jsp:include page="Templates/metas.jsp"/>
<div>
	
	        	<div id="newsletter" class="lb lbMedium">
        		<h3>Subscribe to newsletter</h3>
        		<div class="txt_red"> <html:errors/> </div>
        		<form action="addNewsletter.do" method="post">
					<table class="tab_form">
						
						<tr>
							<td width="40%" align="right"><span class="txt_red">*</span>First name:</td>
							<td width="60%"><input type="text" name="nombre" value="${nombre}" class="txt_input"></td>
						</tr>
						<tr>
							<td align="right"><span class="txt_red">*</span>Last name:</td>
							<td><input type="text" name="apellidos" value="${apellidos}" class="txt_input"></td>
						</tr>
						<tr>
							<td align="right"><span class="txt_red">*</span>E-mail:</td>
							<td><input type="text" name="email" value="${email}" class="txt_input"></td>
						</tr>
					</table>
					<h4>Select the topics you wish to receive information:</h4>
					<table class="tab_datos">
						<tr>
							<td width="34%"><input type="checkbox" name="dato_1"> Sporting goods</td>
							<td width="33%"><input type="checkbox" name="dato_2"> Musical instruments</td>
							<td width="33%"><input type="checkbox" name="dato_3"> Movies</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="dato_4"> Auto parts</td>
							<td><input type="checkbox" name="dato_5"> Garden</td>
							
							<!-- 
							<td><input type="checkbox" name="dato_6"> Provisiones y gourmet</td>
							-->
							
							<td><input type="checkbox" name="dato_7"> Babies & children</td>
							
						</tr>
						<tr>
							
							<!-- <td><input type="checkbox" name="dato_8"> Joyer&iacute;a y relojes</td>-->
							<td><input type="checkbox" name="dato_9"> Magazines</td>
							<td><input type="checkbox" name="dato_10"> Cameras</td>
							<td><input type="checkbox" name="dato_11"> Toys</td>
						</tr>
						<tr>
							
							
							<td><input type="checkbox" name="dato_12"> Clothing & shoes</td>
							<td><input type="checkbox" name="dato_13"> Home</td>
							<td><input type="checkbox" name="dato_14"> Books & music</td>
						</tr>
						<tr>
							
							
							<td><input type="checkbox" name="dato_15"> Health & beauty</td>
							<td><input type="checkbox" name="dato_16"> Computers</td>
							<td><input type="checkbox" name="dato_17"> Furniture</td>
						</tr>
						<tr>
							
							
							<td><input type="checkbox" name="dato_18"> Software</td>
							<td><input type="checkbox" name="dato_19"> Electronics</td>
							<td><input type="checkbox" name="dato_23"> Office</td>
						</tr>
						<tr>
							
							
							<td><input type="checkbox" name="dato_21"> Video games</td>
							<td ><input type="checkbox" name="dato_22"> Home electrical appliance</td>
							<td><input type="checkbox" name="dato_20"> More categories</td>
						</tr>
						
						<tr>
							<td colspan="3" align="center">
								<br>
								<input type="image" src="img/btn_suscribirmeEng.png">
							</td>
						</tr>
					</table>
					<c:choose>
						<c:when test="${R eq 1}">
<p class="mensajeOk">
<img alt="icoOk" src="img/icoOk.png"> Thanks for subscribing to the newsletter. Soon you will receive in your e-mail!
</p>
						</c:when>
						<c:when test="${R eq 2}">
<p class="mensajeError">
<img alt="icoError" src="img/icoError.png"> We could not subscribe to our newsletter. Please try again.
</p>
						</c:when>
						<c:otherwise>
&nbsp;&nbsp;
						</c:otherwise>
					</c:choose>
					
        		</form>
        	</div><!-- /newsletter -->
	
</div>